﻿namespace CSharpPro._1106;

/// <summary>
/// 用户服务接口，定义核心功能契约
/// </summary>
public interface IUserService
{//
    /// <summary>
    /// 用户注册
    /// </summary>
    /// <param name="username">用户名</param>
    /// <param name="password">密码</param>
    /// <returns>注册成功返回true，否则返回false</returns>
    bool Register(string username, string password);

    /// <summary>
    /// 用户登录
    /// </summary>
    /// <param name="username">用户名</param>
    /// <param name="password">密码</param>
    /// <returns>登录成功返回true，否则返回false</returns>
    bool Login(string username, string password);

    /// <summary>
    /// 删除用户
    /// </summary>
    /// <param name="username">待删除用户名</param>
    /// <returns>删除成功返回true，否则返回false</returns>
    bool DeleteUser(string username);

    /// <summary>
    /// 显示所有用户
    /// </summary>
    void ShowAllUsers();

    /// <summary>
    /// 启动系统流程
    /// </summary>
    void StartSystem();
}